#pragma once
#include "caAnalyseClient.h"

class caCMessageData : public IMessage
{
	PVOID m_dAddr;
	DWORD m_dSize;
public:
	caCMessageData(PVOID addr=NULL, DWORD size=NULL)
	{
		m_dAddr=addr;
		m_dSize=size;
	}
	virtual ~caCMessageData(){};
	virtual PVOID GetPartData()
	{
		return m_dAddr;
	}
	virtual DWORD GetPartSize()
	{
		return m_dSize;
	}
};

class caCMessageObjData : public IMessage
{
	caIMessageData* m_dataobj;
public:
	caCMessageObjData(caIMessageData* data)
	{
		m_dataobj=data;
	}
	virtual ~caCMessageObjData(){};
	virtual PVOID GetPartData()
	{
		return m_dataobj->GetData();
	}
	virtual DWORD GetPartSize()
	{
		return m_dataobj->GetSize();
	}
};